home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 October
/
EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso
/
Aminet
/
util
/
arc
/
Repack.lha
/
Repack.doc
next >
Wrap
Text File
|
1995-05-03
|
4KB
|
87 lines
*** Repack 1.0 by Mat Bettinson of the Plot Hatching Factory '95 ***
*** Repack 1.2 and above by Andrea Vallinotto of Nowhere software ***
*_*_*_*_*_* READ THE COPYRIGHT NOTICE AT THE END OF THIS DOCUMENT ! *_*_*_*_*_*
What is Repack?
Repack is quite simple. All it does is to extract every LHA file in the
specified dir and repack with JFs LZX which is substantially better. It then
deletes the original LHA archive when the LZX archiving is finished.
PLEASE NOTE THAT IF YOU MUST HAVE INSTALLED REXXREQTOOLS.LIBRARY AND
REQTOOLS.LIBRARY IN LIBS: IN ORDER TO USE THIS SCRIPT !!!
Both of these libs are *NOT* included, so you need to get them from Aminet or a
similar PD software distributor.
Usage:
[rx] Repack [Dir] [Temp dir] [(efficency)1|2|3] [(bbsmode)on|off]
Example:
rx Repack dh0:temp/a dh0:temp/b 3 ON
will repack each file in directory dh0:temp/a using dh0:temp/b as the temp dir.
The efficiency will be maximum and the BBS mode on.
Simple eh? That's assuming that you have slung Repack.rexx in REXX: and have
LHA and LZX in your search path of course.
If you don't provide any of the above parameters, a Reqtools requester will
appear for each, enabling you to make your choice. Even simpler, eh ?
So you no longer need to edit the rexx script and change the temp dir or the
efficiency.
I've also implemented a "BBS mode" (the last switch); when ON Repack will
set the date, time and comment of the new .LZX archive as the old .LHA. This
could be useful for some bbs (like C-Net and DLG) that will get otherwise
confused by the comment and date changes.
This script also provides an "economy counter": sometimes, when archives have
few small files, it could happen that LHA archives are smaller than LZX ones.
In this case, Repack will leave the original LHA archive intact, and scrap the
longer LZX's.
Note: in BBS mode there's a potential bug, caused by the syntax of the Filenote
command: if some moron included in a file comment one or more quotes ( " ),
Filenote will get confused, resulting in an incomplete comment. This problem
could be addressed a future release of Repack, if it is really necessary.
Please remember that the temp dir should have PLENTY of space in it and be
completely empty because the script will delete anything in the dir in order
to function.
It's generally a good idea to have the temp drawer on another drive other
than the partion that you are repacking on. Why? Because it will lower disk
thrashing and because for a reasonable drawer full of LHA archives, Repack
can take quite some time indeed depending on the speed of your machine...
Note that you can speed it up some by using a low mode setting (fast or
default); even on 1 (fast), it will still be better than LHA and considerably
faster.
If you have plenty of memory and are going to convert many files, I suggest you
make resident LHA and LZX; this way, disk access will be reduced to minimum, and
you'll gain a reasonable amount of speed.
_ ___
V1.0 by /\/\(-) | Fido: 2:254/205.0 & E-Mail: mat@darkside.demon.co.uk
V1.22 by Andrea Vallinotto : Fido 2:334/21.13 AmigaNet 39:101/402.13
Rexxreqtools.library, Copyright © Rafael D'Halleweyn, All Rights Reserved
COPYRIGHT NOTICE:
Version 1.0 of this program was a freeware production by Mat Bettinson (well,
there were no copyright notices at all, but I assume it was freeware).
Since the current version is an hack over Mat's code, I release it as completely
FREEWARE.
However, ANY commercial distribution of this package without the prior written
consent of the author (Andrea Vallinotto) is expressly PROHIBITED.
Fell free to contact me for any suggestions, ideas, etc. at the address above.
Due to copyright problems, Rexxreqtools.library is not included in the package.
Get it from Aminet or Fish Disks; it's also included in Reqtools distributions.